<?php
namespace app\admin\controller;
use think\Db;
class Index extends Base
{
    public function index()
    {
        $arr = explode(".",$_SERVER['HTTP_HOST']);
        $front = "http://www.".$arr[count($arr)-2].".".$arr[count($arr)-1];
        $this->assign('front',$front);
        $this->view->engine->layout(false);
        return $this->fetch();
    }
}
